package com.woniuxy.carlife.util;

import com.alibaba.fastjson.JSON;
import com.woniuxy.carlife.mapper.ServiceInfoMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author fx
 * @ClassName:Test
 * @Description:
 * @date 2021/4/15 16:21
 **/
public class Test {

    @Resource
    private ServiceInfoMapper mapper;

    public static void main(String[] args) {
        //String s="[\"http://192.168.10.57:9000/fourstage/2021/4/15/1618474824646.jpg\",\"http://192.168.10.57:9000/fourstage/2021/4/15/1618474824898.jpg\",\"http://192.168.10.57:9000/fourstage/2021/4/15/1618474824974.jpg\"]";
        String ss="[\"http://192.168.10.57:9000/fourstage/2021/4/15/1618474824646.jpg\",\"http://192.168.10.57:9000/fourstage/2021/4/15/1618474824898.jpg\",\"http://192.168.10.57:9000/fourstage/2021/4/15/1618474824974.jpg\"]";
        List<String> list = JSON.parseObject(ss, List.class);
        System.out.println(list.size());
        for (String s1 : list) {
            System.out.println(s1);
        }
    }
}
